package output.input.cwiczenia;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class PanTadeusz {

    public static void main(String[] args) throws IOException {

        File f = new File("C:/Users/Janusz/Documents/Studia/Inne/ks1.txt");
        char[] zawartoscPliku = new char[(int) f.length()];
        
        FileReader fr;
        try {
            fr = new FileReader(f);
            fr.read(zawartoscPliku);
            fr.close();
        } catch (FileNotFoundException e) {
            System.out.println("Nie odnaleziono pliku.");
        }
        
        System.out.print(zawartoscPliku);
    }

}
